﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Secure/Secure.Master" AutoEventWireup="true" CodeBehind="ChartView.aspx.cs" Inherits="Site.Secure.ChartView" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <h1>Chart View</h1>
<a>This page allows you to view data in graph form. You can not edit data on this page.</a>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>Chart Data View</h2>
<div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" 
        onprerender="UpdatePanel1_PreRender">
        <ContentTemplate>
            <asp:Chart ID="Chart1" runat="server" 
                Width="1423px" DataSourceID="SqlDataSource1" Height="422px">
                <Series>
                    <asp:Series Name="Series1" ChartType="Line" Label="#VALY" YValuesPerPoint="2">
                    </asp:Series>
                </Series>
                <ChartAreas>
                    <asp:ChartArea Name="ChartArea1">
                        <AxisX Minimum="0" Title="Date">
                            <MajorTickMark Interval="1" />
                            <MinorTickMark Enabled="True" />
                        </AxisX>
                        <Area3DStyle Enable3D="True" Inclination="0" LightStyle="Realistic" 
                            Rotation="0" />
                    </asp:ChartArea>
                </ChartAreas>
                <Titles>
                    <asp:Title Name="Title1" Text="Chart Showing No Data">
                    </asp:Title>
                </Titles>
            </asp:Chart>
            <br />
            <br />
            <div>
            <h3>Query Settings</h3>
            <a>Find 
                <asp:DropDownList ID="DropDownList1" runat="server" ViewStateMode="Enabled">
                    <asp:ListItem>Barcode</asp:ListItem>
                    <asp:ListItem>Harvest</asp:ListItem>
                </asp:DropDownList> that equals 
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            </a>
                <asp:Button ID="Button4" runat="server" onclick="Button4_Click" Text="Find" />
            <br />
            <a>YAxis: 
                <asp:DropDownList ID="DropDownList2" runat="server">
                    <asp:ListItem>FullFrames</asp:ListItem>
                    <asp:ListItem>Feed</asp:ListItem>
                    <asp:ListItem>SupersCount</asp:ListItem>
                    <asp:ListItem>Capped</asp:ListItem>
                </asp:DropDownList>
            </a>
                <br />
            </div>
            <br />
            <br />
            <h3>Compair Settings</h3>
            <a>Barcode: 
                <asp:DropDownList ID="DropDownList3" runat="server">
                </asp:DropDownList>
            </a>

            <asp:Button ID="Button2" runat="server" onclick="Button2_Click" 
                Text="Add to Chart" />
            <br />
            <asp:ListBox ID="ListBox1" runat="server" Width="261px"></asp:ListBox>
            <br />
            <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="Button" />

            <br />
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:csMain %>" 
                SelectCommand="SELECT * FROM [DataTable]"></asp:SqlDataSource>
            <asp:Timer ID="Timer1" runat="server" ontick="Timer1_Tick" Enabled="False">
            </asp:Timer>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="Button2" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
</div>
</asp:Content>
